package com.nondo.dean.dealer.model.result;

import java.io.Serializable;
import java.math.BigDecimal;

import com.nondo.dean.common.tool.BeanUtils;

public class ActivityProductResult  implements Serializable {
    
    private static final long serialVersionUID = 5612051004399240044L;
    
    /**
     * 产品ID
     */
    private Integer id;
    /**
     * 产品编码
     */
    private String code;
    /**
     * 产品名称
     */
    private String name;
    /**
     * 产品主图
     */
    private String mainImage;

    /**
     * 成本价
     */
    private BigDecimal costPrice;
    /**
     * 销售价
     */
    private BigDecimal salePrice;
    
    /**
     * 折扣率
     */
    
    private BigDecimal discountRate;

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the mainImage
     */
    public String getMainImage() {
        return mainImage;
    }

    /**
     * @param mainImage the mainImage to set
     */
    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    /**
     * @return the costPrice
     */
    public BigDecimal getCostPrice() {
        return costPrice;
    }

    /**
     * @param costPrice the costPrice to set
     */
    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    /**
     * @return the salePrice
     */
    public BigDecimal getSalePrice() {
        return salePrice;
    }

    /**
     * @param salePrice the salePrice to set
     */
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }

    public static ActivityProductResult covertToBean(ProductResult productResult) {
        ActivityProductResult storeProductResult = new ActivityProductResult();
        BeanUtils.copy(productResult, storeProductResult);
        return storeProductResult;
    }

}
